<template>
  <j-modal :title="title" :width="width" :visible="visible" switchFullscreen @cancel="handleCancel" cancelText="关闭">
    <HfPurchasePriceHistoryList ref="realForm" :disabled="disableSubmit"></HfPurchasePriceHistoryList>
  </j-modal>
</template>

<script>
import HfPurchasePriceHistoryList from './HfPurchasePriceHistoryList.vue'
export default {
  name: 'HfPurchasePriceHistoryModal',
  components: {
    HfPurchasePriceHistoryList
  },
  data() {
    return {
      title: '',
      width: 800,
      visible: false,
      disableSubmit: false
    }
  },
  methods: {
    open(record) {
      this.visible = true
      this.$nextTick(() => {
        this.$refs.realForm.openlist(record)
      })
    },
    close() {
      this.$emit('close')
      this.visible = false
    },
    handleCancel() {
      this.close()
    }
  }
}
</script>
